package com.bkfm.framework.sys.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.yak.core.service.BaseService;

import com.bkfm.framework.sys.api.service.IBkfmRoleService;
import com.bkfm.framework.sys.api.store.IBkfmRoleStore;
import com.bkfm.framework.sys.entity.BkfmRoles;
import com.bkfm.framework.sys.entity.BkfmUsers;

@Service
@Transactional
public class BkfmRoleService extends BaseService<BkfmRoles> implements IBkfmRoleService{

	@Resource
	private IBkfmRoleStore roleStore;
	
	/**
	 * 查询用户对应角色列表
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public List<BkfmRoles> queryUserRoleList(BkfmUsers bkfmUser)throws Exception{
		return roleStore.selectUserRoleList(bkfmUser);
	}
}
